// 登录请求参数类型
export interface LoginParams {
	username: string;
	password: string;
	rememberUsername?: boolean;
	rememberPassword?: boolean;
}

// API响应通用结构
export interface BaseResponse<T = any> {
	code: number;
	message: string;
	data: T;
}

// 登录成功响应数据
export interface LoginResponse {
	code: number;
	message: string;
	data: {
		token: string;
		userId: string;
		username: string;
		role?: string;
	};
    timestamp: number;
}

// 注册请求参数
export interface RegisterParams {
	username: string;
	password: string;
}

// 注册响应数据
export interface RegisterResponse {
	code: number;
	message: string;
	data: {
		userId: string;
		username: string;
	};
    timestamp: number;
}
